home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Bank smakow / BankSmakow.air / BankSmakow.swf / scripts / _com_makingwaves_view_RecipeViewWatcherSetupUtil.as < prev    next >
Text File  |  2009-12-16  |  1KB  |  32 lines

  1. package
  2. {
  3.    import com.makingwaves.view.RecipeView;
  4.    import flash.display.Sprite;
  5.    import mx.binding.IWatcherSetupUtil;
  6.    import mx.binding.PropertyWatcher;
  7.    import mx.core.IFlexModuleFactory;
  8.    
  9.    public class _com_makingwaves_view_RecipeViewWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
  10.    {
  11.        
  12.       
  13.       public function _com_makingwaves_view_RecipeViewWatcherSetupUtil()
  14.       {
  15.          super();
  16.       }
  17.       
  18.       public static function init(param1:IFlexModuleFactory) : void
  19.       {
  20.          RecipeView.watcherSetupUtil = new _com_makingwaves_view_RecipeViewWatcherSetupUtil();
  21.       }
  22.       
  23.       public function setup(param1:Object, param2:Function, param3:Array, param4:Array) : void
  24.       {
  25.          param4[0] = new PropertyWatcher("recipeCanvas",{"propertyChange":true},[param3[0]],param2);
  26.          param4[1] = new PropertyWatcher("recipe",{"propertyChange":true},[param3[1]],param2);
  27.          param4[0].updateParent(param1);
  28.          param4[1].updateParent(param1);
  29.       }
  30.    }
  31. }
  32.